//Program to print fibonacci series.
class prog3
	{
	public static void main(String args[])
		{
		int f=0, s=1, sum=0, n=10;
		
		System.out.println(sum + "\n" + s);

		for(int i=0;i<n-2;i++)
			{
			sum=s+f;		
			System.out.println(sum);
			f=s;
			s=sum;
			}
		}	
	}